﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.Entity;
namespace PUCIT.eFCS.Admin
{
    public partial class CreateField : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            
           
            DataAccess.Models.action action = new DataAccess.Models.action();
            action.actionId = 100;
            action.javascript = "eFCS Final Project";
            action.label = "Sir Idrees";
            action.nextSectionId = 1;
            action.sectionId = 1;
            DataAccess.Models.eFCS_FinalContext dbContext = new DataAccess.Models.eFCS_FinalContext();
            dbContext.actions.Add(action);
            var ab = dbContext.actions.ToList();
            
            dbContext.SaveChanges();

        }
    }
}